/** 
* inSample
* Version 0.1
* Author: Dennis Garstka
*/
(function($){
   jQuery.fn.inSample = function(options) {
      var settings = {
         "attr"          : "rel",
         "colorActive"   : "#000000",
         "colorInactive" : "#999999"
      };
      if (options) {
        $.extend(settings, options);
      }

      this.each(function() {
         $(this).val($(this).attr(settings["attr"])).attr("autocomplete","off").css("color",settings["colorInactive"]);
      });
      this.focus(function() {
         if ($(this).attr(settings["attr"]) == $(this).val()) {
            $(this).val("").css("color",settings["colorActive"]);
         }
      });
      this.blur(function() {
         if ($(this).val() == "") {
            $(this).val($(this).attr(settings["attr"])).css("color",settings["colorInactive"]);
         }
      });
   };
})(jQuery);